home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 October: Windmill on DISC / ADC Developer CD (1993-10) (''Windmill On DISC'')_iso / Dev.CD Oct 93.iso / System Software / U.S. System Software / System 7 Pro™ Beta 11 / Development Tools / Sample Code / Messaging Service Access Module / Internet PMSAM / Internet PMSAM source / gatewaystuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-19  |  1.6 KB  |  48 lines  |  [TEXT/MPS ]

  1. /*----------------------------------------------------------
  2.  
  3. AOCE Post Office Protocol (3)
  4. Personal Gateway
  5.  
  6. written by Steven Falkenburg-- MacDTS
  7. ©1991-1993 Apple Computer, Inc.
  8.  
  9. ----------------------------------------------------------*/
  10.  
  11. #pragma once
  12.  
  13. #ifndef __TYPES__
  14. #include <Types.h>
  15. #endif
  16.  
  17. #ifndef __MYTYPES__
  18. #include "mytypes.h"
  19. #endif
  20.  
  21. OSErr InitGatewayStuff(void);
  22. void CloseGatewayStuff(void);
  23. OSErr InitAOCEStuff(void);
  24. void CloseAOCEStuff(void);
  25. Boolean HasAOCE(void);
  26.  
  27. OSErr ActivateSlot(SlotSpec *slotSpec);
  28.  
  29. OSErr CheckSlotRefresh(void);
  30. void MarkSlotInformationDirty(void);
  31. OSErr ReadGatewaySlotInformation(void);
  32. OSErr GetMailServiceInfo(CreationID *cid,SlotSpecPtr curSlot);
  33. OSErr GetParseSetupAttributes(CreationID *cid,short attrType,ForEachAttrValue callBack,long clientData);
  34. OSErr GetSingleValueAttribute(CreationID *cid,AttributeType *attribType,void *attrBuffer,Size attrBufferSize);
  35. pascal Boolean AddSlotCallback(long clientData, const Attribute *attribute);
  36. OSErr AddAttribute(CreationID *cid,short dsRef,AttributeType *attribType,void *data,unsigned long dataLength,AttributeTag tag);
  37. pascal Boolean SingleAttrValueCallback(long clientData, const Attribute *attribute);
  38. pascal Boolean RecordIDCallback(long clientData, const RecordID *recordID);
  39.  
  40.  
  41. void MakePersonalRecordID(RecordID *recordID,CreationID *creationID);
  42. SlotSpec *GetSlotSpecFromID(short slotID);
  43. void MacToMailTime(unsigned long macTime,MailTime *mailTime);
  44. void r2cString (RString *rStr,char *cStr);
  45. OSErr OCECopyFitRString (RString *str1, RString *str2, unsigned short str2Length);
  46.  
  47. pascal void MSAMCompletion(MSAMParam *gwp);
  48.